package chapter_9;

public class Test2 {
    public static void main(String[] args) {
        new Thread(){
            @Override
            public void run(){
                System.out.println( Thread.currentThread().getName() +"  aaa");
            }
        }.start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println( Thread.currentThread().getName() +"  bbb");
            }
        }).start();
        new Thread(
                () -> System.out.println( Thread.currentThread().getName() +"  ccc")
        ).start();
    }
}
